<?php

abstract class WrapperForm extends UserForm
{
    public function setup()
    {
        // the form should have a name
        if ( !defined(get_called_class().'::NAME') )
        {
            throw new LogicException('The form has no name');
        }

        // remove all fields
        $this->useFields();
    }

    final public function processValues($values)
    {
        // do nothing
        return $values;
    }

    final protected function doUpdateObject($values = null)
    {
        // do nothing
    }

    
}
